#include "utils/std.h"
#include "utils/file.h"
#include "oid.h"
#include "cmd.h"
#include "config.h"

void git_init(int argc, char *argv[])
{
    mkdir(GIT_DIR, S_IRWXU);
    make_file(GIT_HEAD_PATH, OID_ZERO "\n");
    mkdir(GIT_OBJECTS_DIR, S_IRWXU);
    make_file(GIT_INDEX_PATH, "tree\n0\n");
    printf("Initialized empty Git repository\n");
}
